<template>
  <div>
    <h4>This is one page.</h4>
    <button @click="back()">back</button>
    <button @click="next()">next</button>
  </div>
</template>

<script>
  export default {
    name: "One",
    methods: {
      /*back to previous page*/
      back() {
        this.$router.back();
      },
      /*to next page*/
      next() {
        this.$router.push({name: 'Two'})
      }
    }
  }
</script>

<style scoped>
  div {
    margin: 0 auto;
  }
</style>
